<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.8"/>
<title>embedme: StringFilter类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">embedme
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.8 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>首页</span></a></li>
      <li class="current"><a href="annotated.html"><span>类</span></a></li>
      <li><a href="files.html"><span>文件</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>类列表</span></a></li>
      <li><a href="classes.html"><span>类索引</span></a></li>
      <li><a href="hierarchy.html"><span>类继承关系</span></a></li>
      <li><a href="functions.html"><span>类成员</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">类</a> &#124;
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="class_string_filter-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">StringFilter类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p>字符串筛查器.  
 <a href="class_string_filter.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="_string_filter_8h_source.html">StringFilter.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:ae5dab7b6c0c9988f91c461ee856b27f2"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae5dab7b6c0c9988f91c461ee856b27f2"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>StringFilter</b> (const char *startFlag, int startFlagLen, const char *endFlag, int endFlagSize)</td></tr>
<tr class="separator:ae5dab7b6c0c9988f91c461ee856b27f2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a51600e5a1faf0fd03d3a3aa3aa017cae"><td class="memItemLeft" align="right" valign="top">std::vector&lt; std::string &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_string_filter.html#a51600e5a1faf0fd03d3a3aa3aa017cae">filterOn</a> (const char *buf, int size)</td></tr>
<tr class="memdesc:a51600e5a1faf0fd03d3a3aa3aa017cae"><td class="mdescLeft">&#160;</td><td class="mdescRight">字符串筛查  <a href="#a51600e5a1faf0fd03d3a3aa3aa017cae">更多...</a><br /></td></tr>
<tr class="separator:a51600e5a1faf0fd03d3a3aa3aa017cae"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a41fcf912a91e4a6e79eb5ca26752bd62"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_string_filter.html#a41fcf912a91e4a6e79eb5ca26752bd62">addSpecialRule</a> (const char *startFlag, int startFlagLen, const char *endFlag, int endFlagLen)</td></tr>
<tr class="memdesc:a41fcf912a91e4a6e79eb5ca26752bd62"><td class="mdescLeft">&#160;</td><td class="mdescRight">增加特殊过滤规则  <a href="#a41fcf912a91e4a6e79eb5ca26752bd62">更多...</a><br /></td></tr>
<tr class="separator:a41fcf912a91e4a6e79eb5ca26752bd62"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac1cd75219f234f39d37c6546f4e1e3c8"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac1cd75219f234f39d37c6546f4e1e3c8"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>clear</b> ()</td></tr>
<tr class="separator:ac1cd75219f234f39d37c6546f4e1e3c8"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>字符串筛查器. </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a class="anchor" id="a41fcf912a91e4a6e79eb5ca26752bd62"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StringFilter::addSpecialRule </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>startFlag</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>startFlagLen</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>endFlag</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>endFlagLen</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>增加特殊过滤规则 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">startFlag</td><td>开始标识 </td></tr>
    <tr><td class="paramname">startFlagLen开始标识的长度</td><td></td></tr>
    <tr><td class="paramname">endFlag</td><td>结束标识 </td></tr>
    <tr><td class="paramname">endFlagLen</td><td>结束标识的长度 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>none </dd></dl>
<dl class="section note"><dt>注解</dt><dd>注意:使用该函数添加特殊规则时,先添加的优先级更高, 请确保最特殊的规则放在最先添加,并且规则之间不能存 在包含关系(如A规则是B规则的子集,即A规则范围小,B规 则范围大,则A会被B规则屏蔽,将无法匹配到子集)!!! </dd></dl>

</div>
</div>
<a class="anchor" id="a51600e5a1faf0fd03d3a3aa3aa017cae"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::vector&lt; std::string &gt; StringFilter::filterOn </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>buf</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>size</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>字符串筛查 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">buf</td><td>要筛查的字串 </td></tr>
    <tr><td class="paramname">size</td><td>buf的长度 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回筛查到的符合规则的字符串 </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>libemb/inc/<a class="el" href="_string_filter_8h_source.html">StringFilter.h</a></li>
<li>libemb/src/StringFilter.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
生成于 2016年 七月 7日 星期四 19:49:39 , 为 embedme使用  &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.8
</small></address>
</body>
</html>
